package kis.designpattern.decorator;

import java.util.Date;

public class SumPrizeDecorator extends Decorator{

	public SumPrizeDecorator(Component c)
	{
		super(c);
	}

	@Override
	public double claculatePrize(String user, Date beginDate, Date endDate)
	{
		double money = super.claculatePrize(user, beginDate, endDate);
		double prize = 10000*0.001;
		return money+prize;
	}


}
